package com.ytq.share.mapper;

import com.ytq.share.dto.CustomUserDTO;
import com.ytq.share.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author yuantongqin
 * description:
 * 2020/12/7
 */
public interface UserMapper  {


    @Select("select * from user where user_name like concat(#{name},'%')")
    List<User> getUserListByName(@Param("name") String name);

//    @Select("select * from user where user_id = #{userId}")
    List<User> getUserByUserId(@Param("userId") Long userId);

    List<CustomUserDTO> getAllUser();

}
